using Wikey.Extensibility.Enums;

namespace Wikey.Extensibility.Classes
{
    public interface ITransformationResult
    {
        string Html { get; set; }
        string JavaScript { get; set; }
        string Json { get; set; }
        string Text { get; set; }
        string this[TransformationResultType type] { get; set; }
    }

    public class TransformationResult
    {
        public TransformationResult()
        {
        }

        public TransformationResult(TransformationResultType type, string empty)
        {
            switch (type)
            {
                case TransformationResultType.Html:
                    Html = empty;
                    break;
                case TransformationResultType.Javascript :
                    JavaScript = empty;
                    break;
                case TransformationResultType.Json:
                    Json = empty;
                    break;
            }
        }

        public string Html {  get; set; }

        public string JavaScript { get; set; }

        public string Json { get; set; }

        public string Text { get; set; }

    }
}